
var __ws = [
	{
		name: 'Logo',
		template: `
		<div name="Logo" >
			<img class="w100" :src="src" />
	  	</div>`,
		data: function () {
			return {
				src: './static/img/cube_174.png',
			}
		},
	},
	{
		name: 'Login',
		template: `
		<div name="Login" >
			<form>
				<div class="fm-row flec marb10">
					<div class="flex1 pd010">
						<div class="w100 justify-all"><span>请输入账号</span></div>
					</div>
					<div class="flex3">
						<Input class="w200 h30" />
					</div>
				</div>
				<div class="fm-row flec marb10">
					<div class="flex1 pd010">
						<div class="w100 justify-all"><span>请输入密码</span></div>
					</div>
					<div class="flex3">
						<Input class="w200 h30" />
					</div>
				</div>
				<div v-if="verify" class="fm-row flec marb10">
					<div class="flex1 pd010">
						<div class="w100 justify-all"><span>请输入账号</span></div>
					</div>
					<div class="flex3">
						<Input class="w200 h30" />
					</div>
				</div>
				<div class="h30"></div>
				<div class="fm-row flec center marb10">
					<div class="btn w101 h30 br2 bd1i" @click="doLogin">
						<span v-if="waiting"><i class="fa fa-spin"></i></span>
						<span>登录</span>
					</div>
				</div>
			</form>
	  	</div>`,
		data: function () {
			return {
				waiting: false,
				verify: false,
			}
		},
		methods:{
			doLogin () {
				let v = this;
				// let fd = new FormData();
				// fd.append('username','admin');
				// v.waiting = true;
				// __post({url:__api.login, data:fd}).then(r => {
				// 	console.log(r);
				// 	setTimeout(function () {v.waiting = false;},300)
					
				// })
				v.$router.push({path:'/welcome'})
			},
		}
	},
	
]
if (!window.widgets) window.widgets = [];
for (let n in __ws) window.widgets.push(__ws[n]);
